package bean;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class Man extends Person {
    private boolean isSmoking;
    String name = "Man";

    @Override
    public void eat() {
        System.out.println("男人多吃肉，长肌肉。");
    }

    public void earnMoney() {
        System.out.println("男人挣钱养家！");
    }

}
